// in能检测到原型对象上的属性，hasOwnProperty检测不到
const obj = {
  name: 'zs',
  age: 18,
  gender: 'male',
  address: 'SH'
}

obj.__proto__.mobile = 911

console.log('mobile' in obj)
console.log(obj.hasOwnProperty('mobile'))
